function bbb(a) {
    $(document).ready(function () {

        layui.use('form', function () {
            var form = layui.form;
            console.log(a);
            log(a);

        });
    });

    function log(a) {
        layui.use(['table', 'layer', 'form'], function () {
            var table = layui.table;
            var layer = layui.layer;
            var form = layui.form;
            //第一个实例
            layer.ready(function () {


                table.render({
                    elem: '#demo'
                    , height: 700
                    , url: '/curriculum/primary/log' //数据接口
                    , page: true //开启分页
                    , where: { //设定异步数据接口的额外参数，任意设
                        curriculumId: a
                    }
                    , cols: [[ //表头
                        {field: 'logPid', title: '授课编号', width: 200, fixed: 'left'}
                        , {field: 'logCourseName', title: '授课名称', width: 200}
                        , {
                            title: '销售价格', width: 280, templet: function (d) {
                                return "<p style=\"line-height: 10px;margin-left: 10px;margin-right: 0px;margin-top: 20px;padding: 0;\"><span>原价：" + d.logOriginalPrice + "</span><br/><br><br><span>现价：" + d.logPresentPrice + "</span></p>"
                            }
                        }
                        , {
                            field: 'logGrounding', title: '上下架', width: 200, templet: function (d) {
                                if (d.logGrounding == 0) {
                                    return "上架中"
                                } else {
                                    return "已下架"
                                }
                            }
                        }
                        , {
                            field: 'logAuditStatus', title: '审核状态', width: 200, templet: function (d) {
                                if (d.logAuditStatus == 0) {
                                    return "审核中"
                                } else if (d.logAuditStatus == 1) {
                                    return "审核已通过"
                                } else if (d.logAuditStatus == 2) {
                                    return "审核未通过"
                                }
                            }
                        }
                        , {
                            title: '操作信息', width: 280, templet: function (d) {
                                return "<p style=\"line-height: 10px;margin-left: 10px;margin-right: 0px;margin-top: 20px;padding: 0;\"><span>" + d.logModifiedBy + "</span><br/><br><br><span>" + d.logModifiedOn + "</span></p>"
                            }
                        }

                    ]]
                });
            });


        });
    }
}